﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Aanbiedingen.aspx.cs" Inherits="WebshopPizzaRio.WebForm1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h1>Aanbieding van de week:</h1><br />

<asp:ListView ID = "pizzaoverzichtLV" runat="server" DataKeyNames = "pizzaid, naam, aanbiedingprijs, prijs" OnSelectedIndexChanging = "pizzaoverzichtLV_SelectedINdexChanging">


 <LayoutTemplate>
        <ul class = "pizzaoverzicht">
            <asp:PlaceHolder ID = "itemPlaceholder" runat= "server" />
        </ul>
    </LayoutTemplate>

    <ItemTemplate>

        <li> 
            <h4> <a href="/Pizzadetails.aspx?id=<%#Eval("pizzaid") %>"><%#Eval("naam") %> </a></h4>

            <a href="/Pizzadetails.aspx?id=<%#Eval("pizzaid") %>"> <img src = "Images/Pizza-verkoop/<%#Eval("pizzaid") %>.jpeg" alt = "Van deze pizza is geen foto beschikbaar" /> </a><br />

            Aanbiedingsprijs:  €<%#Eval("aanbiedingprijs") %> <br /> 
            Normale prijs:  €<%#Eval("prijs") %> <br /> 

            <asp:LinkButton ID="SelectPizza" runat="server" CommandName = "Select">Voeg toe aan de winkelwagen</asp:LinkButton>
        </li>
        
    </ItemTemplate>



  </asp:ListView>

</asp:Content>
